TeX
Hedgehog Lab can have output displayed as TeX
To write something in TeX, call tex()
and input the TeX as a parameter:
tex("\\text{Welcome to Hedgehog Lab.}")
\\text
is used to create a stringYour actual text will be in the
{}
spaceEverything is encapsulated by double quotations (
" "
)
This is how to write a formula in TeX:
formulaTex("Y = mx + b")
To convert a variable
to TeX just call the toTex()
method:
A.toTex()
tip
Information regarding TeX is widely documented on the Internet.